<%@page contentType="text/plain" pageEncoding="UTF-8" import="com.mop.dinnerbook.dao.*,java.util.*,com.mop.dinnerbook.bean.*,java.net.*"%>
<%
	Manager manager = (Manager)session.getAttribute("manager");
        if(manager != null){
            String content = request.getParameter("menuContent");
            request.setCharacterEncoding("UTF-8");
            content = URLDecoder.decode(content, "UTF-8");
            Menu menu = new Menu();
            menu.setContent(content);
            MenuDAO dao = new MenuDAO();
            boolean result = dao.modifyMenu(menu);
            if(result == false){
                    out.write("修改菜谱失败！");
            }else{
                    out.write("修改菜谱成功！");
            }
        }else{
            out.write("修改菜谱失败，权限不足！");
        }
%>
